package ooday05;
//static的演示
public class StaticDemo {
    public static void main(String[] args) {
        StaicVar o1 = new StaicVar();
        o1.show();

        StaicVar o2 =new StaicVar();
        o2.show();

        StaicVar o3 = new StaicVar();
        o3.show();

        System.out.println(o1.b);//常常通过类名点来访问
        System.out.println("-----------------");
        StaticBlock o4 = new StaticBlock();
        StaticBlock o5 = new StaticBlock();
        StaticBlock o6 = new StaticBlock();
    }
}
